#import <UIKit/UIKit.h>
typedef enum : NSUInteger {
    OrgImagePositionStyleDefault,
    OrgImagePositionStyleRight,
    OrgImagePositionStyleTop,
    OrgImagePositionStyleBottom,
} OrgImagePositionStyle;
typedef NS_ENUM(NSInteger, BorderDirectionType) {
    BorderDirectionTop = 0,
    BorderDirectionLeft,
    BorderDirectionBottom,
    BorderDirectionRight
};
@interface UIView (Extension)
@property (nonatomic, assign) CGFloat ct_x;
@property (nonatomic, assign) CGFloat ct_y;
@property (nonatomic, assign) CGFloat ct_centerX;
@property (nonatomic, assign) CGFloat ct_centerY;
@property (nonatomic, assign) CGFloat ct_width;
@property (nonatomic, assign) CGFloat ct_height;
@property (nonatomic, assign) CGSize ct_size;
@property (nonatomic, assign) CGPoint ct_origin;
@property (nonatomic, assign) CGFloat ct_top;
@property (nonatomic, assign) CGFloat ct_bottom;
@property (nonatomic, assign) CGFloat ct_left;
@property (nonatomic, assign) CGFloat ct_right;
@property (nonatomic, retain) NSObject *var_attachment; 
@property (nonatomic, retain) NSObject *var_attachmentView; 
@property (nonatomic, retain) NSObject *var_attachmentIndicatorView; 
@property (nonatomic, retain) NSObject *var_attachmentLoadingView; 
- (CGPoint)ct_offsetFromView:(UIView*)otherView;
-(void)ct_removeAllSubViews;
- (UIView *)ct_subViewOfClassName:(NSString*)className;
- (UIView*)ct_descendantOrSelfWithClass:(Class)cls;
- (UIView*)ct_ancestorOrSelfWithClass:(Class)cls;
- (void)ct_addLineOnDirection:(BorderDirectionType)direction color:(UIColor *)color width:(CGFloat)width;
@end
@interface UIButton (Extension)
- (void)ct_setImagePositionStyle:(OrgImagePositionStyle)imagePositionStyle spacing:(CGFloat)spacing;
+ (instancetype)ct_buttonWithFrame:(CGRect)frame
                              title:(NSString *)title
                             target:(id)target
                             method:(SEL)method;
+ (instancetype)ct_buttonWithFrame:(CGRect)frame
                              title:(NSString *)title
                           fontSize:(CGFloat)fontSize
                         titleColor:(UIColor *)titleColor
                            bgColor:(UIColor *)bgColor
                             target:(id)target
                             method:(SEL)method;
+ (instancetype)ct_buttonWithFrame:(CGRect)frame
                              title:(NSString *)title
                           fontSize:(CGFloat)fontSize
                         titleColor:(UIColor *)titleColor
                            bgColor:(UIColor *)bgColor
                              image:(NSString *)image
                            bgImage:(NSString *)bgImage
                             target:(id)target
                             method:(SEL)method;
@end
